<?php
	require_once("action/CommonAction.php");
	require_once("action/dao/IndexDAO.php");

	class IndexAction extends CommonAction {

//		private $_expiration;
//		private $_afficher;
		private $_nomPage;
		private $_pageArray = array();
	
		public function __construct($nomPage) {
			parent::__construct();
			$this->_nomPage = $nomPage;
		}
		
		public function execute() {
			parent::execute();
			$this->_pageArray = IndexDAO::getPage($this->_nomPage, $_SESSION["currentLang"]);	
		}
		
		public function getMenu() {
			return $this->_pageArray["MENU"];			
		}

		public function getTitre() {
			return $this->_pageArray["TITRE"];			
		}
		
		public function getSousTitre() {
			return $this->_pageArray["SOUS_TITRE"];			
		}
		
		public function getTexte() {
			return $this->_pageArray["TEXTE"];			
		}
	}


